<?php
include 'D:/dingjiangbbs/common/home.php';
//屏蔽notice错误
error_reporting(E_ALL ^ E_NOTICE);
//销毁cookie及session的缓存值
setcookie('loginAfter',$_COOKIE['loginAfter'],time()-1,'/');
setcookie('username',$_COOKIE['username'],time()-1,'/');
setcookie('uid',$_COOKIE['uid'],time()-1,'/');
//var_dump($_COOKIE);

//session也要销毁/清空，因为session保存在cookie里面
$_SESSION = [];

//session_destroy();

//记录最后登录时间
	//setcookie('lasttime',time(),time()+60,'/');

header('refresh:0.0001;url='.WEB_SITE.'index.php');


	
	
	

	

